package br.com.channelll.server.rpc.bo;

import java.util.ArrayList;

import br.com.channelll.client.bean.LoginRequestBean;
import br.com.channelll.client.bean.LoginResponseBean;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ExisteLoginBO implements BusinnesObject{

	public static ArrayList<String> listaLogin = new ArrayList<String>();
	@Override
	public IsSerializable execute(IsSerializable requestBean) {
		LoginRequestBean beanCasted = (LoginRequestBean) requestBean;
		LoginResponseBean responseBean = new LoginResponseBean();
		responseBean.isOk = listaLogin.contains(beanCasted.loginName);
		return responseBean;
	}
}
